wayland: Allow 0-size writes in selection/dnd
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Mar 2016 16:28:29 +0000 (17:28 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 9 Mar 2016 17:39:15 +0000 (18:39 +0100)
It's not something we should be forbidding explicitly, definitely
no-op is not the best option.

gdk/wayland/gdkselection-wayland.c

index 8a9d1ee825301cf503aeac166ed26a3d32558df9..e1dd69b96a91268406cbb34c2440865ce7b9d75f 100644 (file)
@@ -667,8 +667,7 @@ gdk_wayland_selection_check_write (GdkWaylandSelection *selection)
 {
   AsyncWriteData *write_data;
 
-  if (selection->stored_selection.fd < 0 ||
-      selection->stored_selection.data_len == 0)
+  if (selection->stored_selection.fd < 0)
     return FALSE;
 
   /* Cancel any previous ongoing async write */